package com.yjd.comm.wal.util;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.alibaba.fastjson.JSON;
import com.yjd.comm.system.model.SysParamModel;
import com.yjd.comm.system.util.SysParamUtil;
import com.yjd.comm.util.FrameUtil;
import com.yjd.comm.vo.Constant.SysParamKeyEnum;

/**  
 * @Description:   
 * @author wanganping   
 * @date 2015-9-15 
 * @version V1.0   
 */
public class WalParamUtils {
	
	public static Map<String,Object> getActivity1010()throws Exception{
		SysParamModel sysParamModel = SysParamUtil.getSysParamModel(SysParamKeyEnum.WAL_ACTIVITY_1010);
		if (sysParamModel == null) {
			FrameUtil.throwBaseException1("系统参数WAL_ACTIVITY_1010不存在！");
		}
		
		String param_value = sysParamModel.getParam_value();
		if(StringUtils.isBlank(param_value)){
			FrameUtil.throwBaseException1("系统参数WAL_ACTIVITY_1010配置为空！");
		}
		return JSON.parseObject(param_value);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
